/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.neu.nutrons.bots.logomotion.autocmd;

import edu.neu.nutrons.lib.AutoModeCommand;

/**
 *
 * @author NUTRONS_PROGRAMMING
 */
public class DriveDistanceCommand implements AutoModeCommand {
    double distance;
    double maxSpeed;
    int i = 0;

    public DriveDistanceCommand(double distance, double maxSpeed){
        this.distance = distance;
        this.maxSpeed = maxSpeed;
    }


    public boolean doWork() {
        i++;
        System.out.println("in DriveDistance " + distance + " " + i);
        if(i > 10) {
            return true;
        }
        return false;
    }
}
